// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// 开发配置文件
import router from './router/index'
import settings from "./settings"
// elementUI 导入和调用
import ElementUI from 'element-ui';
Vue.use(ElementUI);
import axios from 'axios'; // 从node_modules目录中导入包
// 允许ajax发送请求时附带cookie
axios.defaults.withCredentials = false;
// css全局初始化代码
import '../static/css/reset.css';
// 全局导入字体图标
import "../static/css/iconfont.css";
import "../static/css/iconfont.eot";
// 导入富文本编辑器
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
Vue.use(mavonEditor);
Vue.config.productionTip = false;
// 项目核心配置文件
Vue.prototype.$settings = settings;
// 初始化axios
// 允许ajax发送请求时附带cookie
axios.defaults.withCredentials = false;
Vue.prototype.$axios = axios; // 把对象挂载vue中


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});



